import { Injectable } from '@nestjs/common';
import { NotesModel } from '@/model';

@Injectable()
export class NoteService {
  getHello(): string {
    return 'Hello World!';
  }
  async createToDo(): Promise<any> {
    const todo1 = await NotesModel.create();
    await todo1.save();
    return todo1;
  }
}
